#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <chrono>
#include <iomanip>
#include <string>
#include <algorithm>

#pragma once

using namespace std;
class Salarys
{
private:
	vector <int> sallys;
public:

	Salarys(void)
	{
	}

	~Salarys(void)
	{
	}

	void readSalarysFromFile(string filename)
	{
		ifstream fin(filename);
		int x = 0;
		if(fin.is_open())
		{
			while(!fin.eof())
			{
				fin >> x;
				if(!fin.eof())
				{
					sallys.push_back(x);
				}
			}
			fin.close();
		}
	}

	friend ostream &operator <<(ostream &out, Salarys &sal)
	{
		for (int i = 0; i < sal.sallys.size(); i++)
		{
			out << i << ": " << sal.sallys[i] << endl;
		}
		return out;
	}
};

